package com.web.utils;

import com.google.gson.Gson;

/**
 *
 * @author sky
 * @date 2018/3/18
 */
public class JsonStringToObject {
    /**json字符串封装成对象*/
    public static  <T> T transfer(String json,Class<T> classOfT){
        Gson gson=new Gson();
        T t=gson.fromJson(json,classOfT);
        return t;
    }
}
